﻿using System;
using System.Drawing;

namespace HML
{
    /// <summary>
    /// 菜单背景绘制事件参数
    /// </summary>
    public class TabControlPlusTabBarDrawBackgroundEventArgs : EventArgs
    {
        private readonly float dpi;
        /// <summary>
        /// 系统缩放比例
        /// </summary>
        public float Dpi
        {
            get { return this.dpi; }
        }

        private readonly Graphics graphics;
        /// <summary>
        /// 封装一个GDI+绘图图面 （ 当前 Clip=ClipBounds_P ）
        /// </summary>
        public Graphics Graphics
        {
            get { return this.graphics; }
        }

        private readonly RectangleF bounds_P;
        /// <summary>
        /// 菜单区域（包含:内边距、内容）
        /// </summary>
        public RectangleF Bounds_P
        {
            get { return this.bounds_P; }
        }

        private readonly RectangleF bounds_C;
        /// <summary>
        /// 菜单区域（只包含:内容）
        /// </summary>
        public RectangleF Bounds_C
        {
            get { return this.bounds_C; }
        }

        private readonly RectangleF clipBounds_P;
        /// <summary>
        /// 菜单剪辑区域（包含:内边距、内容）
        /// </summary>
        public RectangleF ClipBounds_P
        {
            get { return this.clipBounds_P; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="dpi">系统缩放比例</param>
        /// <param name="graphics">封装一个GDI+绘图图面 （ 当前 Clip=ClipBounds_P ）</param>
        /// <param name="bounds_P">当前选项区域（包含:内边距、内容）</param>
        /// <param name="bounds_C">当前选项区域（只包含:内容）</param>
        /// <param name="clipBounds_P">当前选项剪辑区域（包含:内边距、内容）</param>
        public TabControlPlusTabBarDrawBackgroundEventArgs(float dpi, Graphics graphics, RectangleF bounds_P, RectangleF bounds_C, RectangleF clipBounds_P)
        {
            this.dpi = dpi;
            this.graphics = graphics;
            this.bounds_P = bounds_P;
            this.bounds_C = bounds_C;
            this.clipBounds_P = clipBounds_P;
        }

    }

}
